package open.witype.filetiper.fragment.menu.adapter;

/**
 * Created by Typer on 2015/6/1 0001.
 *
 */
public enum FavoType {

    LOCALHOST("网上邻居",0),
    BAIDUNETDISK("百度网盘",1),
    _360NETDISK("360网盘",2),
    ROOT("根目录",3),
    RECENTLY("最近文件",4),
    DIR("",5);

    private String typeName = "";

    private String path = "";

    private int serial;

    FavoType(String typeName, int serial) {
        this.typeName = typeName;
        this.serial = serial;
    }

    public static int fromString(String symbol) {
        FavoType file = FavoType.valueOf(symbol);
        return file.ordinal();
    }

    public String getTypeName() {
        return typeName;
    }

    public String getPath() {
        return path;
    }

    public int getSerial() {
        return serial;
    }
}
